package services

import (
	"gitee.com/RocsSun/report/models"
	"gitee.com/RocsSun/report/repositories"
)

func NewSaveData() *SaveData {
	return &SaveData{
		report: repositories.NewReportCurd(),
	}
}

type SaveData struct {
	report *repositories.ReportCurd
}

func (s SaveData) SaveDevOpsNetFlowData(a []*models.NetFlowData) {
	s.report.InsertDevOpsNetFlowData(a...)
}
